package com.mzy.datepackage.M2021.Dec.Eleven;


import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * Title: AbstractPO
 * </p>
 * <p>
 * Description:
 * </p>
 *
 * @author sunys
 * @date 2018年6月5日
 */
@Setter
@Getter
public abstract class AbstractPO  {

  private Long id;
  // 创建者id

  private Long createdUserId;
  // 创建时间

  private Date createDate;
  // 修改者id

  private Long updatedUserId;
  // 修改时间

  private Date updateDate;
  // 是否有效
  private Integer status = 1;

  /**
   * <p>Title: 数据状态</p>
   * <p>Description: 0：禁用无效，1：正常有效</p>
   */
  public enum Status {
    DISABLE(0, "无效"), ENABLE(1, "有效");

    private Integer value;

    private String comment;

    Status(Integer value, String comment) {
      this.value = value;
      this.comment = comment;
    }

    public Integer value() {
      return this.value;
    }

    public String comment() {
      return this.comment;
    }
  }

}